Skip to content

Conversation

@avik-pal
Copy link
Collaborator

@avik-pal avik-pal commented Sep 26, 2025

fixes #851

Copy link
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

EnzymeJAX Benchmarks

Benchmark suite Current: 9c36971 Previous: fcf54c5 Ratio
scatter_sum / JaX / cpu / Primal 0.000004363031999673695 s 0.000004405523999594152 s 0.99
scatter_sum / JaXPipe / cpu / Primal 0.000004365552996750921 s 0.000004346182988956571 s 1.00
scatter_sum / JaX / tpu / Primal 0.0001437498921994 s 0.0001421422843006 s 1.01
scatter_sum / JaXPipe / tpu / Primal 0.0001381131653091 s 0.0001422737602959 s 0.97

This comment was automatically generated by workflow using github-action-benchmark.

@avik-pal avik-pal force-pushed the ap/loop_batch branch 2 times, most recently from d4dca64 to 82364c8 Compare October 5, 2025 01:08
@avik-pal avik-pal changed the base branch from main to ap/while_noop October 5, 2025 01:08
@avik-pal avik-pal force-pushed the ap/loop_batch branch 3 times, most recently from 2330f4c to 16dc65c Compare October 5, 2025 14:48
@avik-pal avik-pal force-pushed the ap/while_noop branch 2 times, most recently from f0beb10 to e358839 Compare October 5, 2025 23:45
Base automatically changed from ap/while_noop to main October 6, 2025 00:58
@avik-pal avik-pal force-pushed the ap/loop_batch branch 3 times, most recently from 6464414 to 80f512f Compare October 6, 2025 05:28
@avik-pal avik-pal changed the base branch from main to ap/while_is_copy October 6, 2025 05:29
Base automatically changed from ap/while_is_copy to main October 6, 2025 16:17
@avik-pal avik-pal force-pushed the ap/loop_batch branch 3 times, most recently from 7f8be5d to 7c02b16 Compare October 7, 2025 13:27
@avik-pal avik-pal force-pushed the ap/loop_batch branch 4 times, most recently from 0fac8b6 to 0b6908c Compare October 23, 2025 22:51
@avik-pal avik-pal changed the base branch from main to ap/while_copy_more_cases October 23, 2025 22:59
Base automatically changed from ap/while_copy_more_cases to main October 24, 2025 14:15
@avik-pal
Copy link
Collaborator Author

Mostly ready except some minor optimizations. Needs #1513 which folds loops more aggressively

@avik-pal avik-pal force-pushed the ap/loop_batch branch 3 times, most recently from a80f499 to 16a0dfc Compare October 26, 2025 15:40
@avik-pal avik-pal changed the base branch from main to ap/while_is_copy_more_2 October 26, 2025 15:42
@avik-pal avik-pal force-pushed the ap/loop_batch branch 2 times, most recently from 8778889 to f53e57d Compare October 26, 2025 15:44
Base automatically changed from ap/while_is_copy_more_2 to main October 27, 2025 12:46
feat: support non-constant extra indices

fix: only emit new ops if sure

feat: propagate bounds and eliminate noops

chore: run fmt

feat: check for dynamic_slices

feat: unary elementwise working

chore: comments

feat: clear out unwanted no-ops from loop body

feat: elementwise ops are completely supported

chore: add a note

fix: bad rebase

feat: generalize index handling

test: elementwise loop fission

refactor: support dynamicsliceop

feat: sliceinfo generalize

feat: lift ops by batch op

feat: run batching pass

feat: generalize handling for non-reshape case
@avik-pal avik-pal requested a review from wsmoses October 27, 2025 19:59
@avik-pal avik-pal marked this pull request as ready for review October 27, 2025 19:59
@avik-pal avik-pal merged commit 992f348 into main Oct 27, 2025
16 checks passed
@avik-pal avik-pal deleted the ap/loop_batch branch October 27, 2025 23:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Automatically rewrite WhileOp with batch if possible

3 participants